import http from '@/utils/request'

// 获取用户列表
export const getUserList = (params) => {
  return http.post("/admin/adminUser/userPage", params);
};
// 添加用户
export const addUser = (params) => {
  return http.post("/admin/adminUser/insert", params);
};

// 根据id获取用户
export const getUserById = (id) => {
  return http.get("/admin/adminUser/selectById", { id: id });
};
// 更新用户信息
export const updateUser = (params) => {
  return http.post("/admin/adminUser/update", params);
};
// 删除用户信息
export const deleteUser = (id) => {
  return http.delete("/admin/adminUser/delete", { id: id });
};
// 重置用户密码
export const resetUserPassword = (id) => {
  return http.post("/admin/adminUser/resetPassword", { id: id });
};